package com.xxmw.transaction.common.excep.service;

import com.xxmw.transaction.common.utils.Constant;
import lombok.Getter;

@Getter
public class TransactionException extends RuntimeException {

	private static final long serialVersionUID = 1L;

	private int code;

	public TransactionException(String message) {
		super(message);
		this.code = Constant.ERROR;
	}

	public TransactionException(int code, String message) {
		super(message);
		this.code = code;
	}

	public TransactionException(String message, Throwable cause) {
		super(message, cause);
		this.code = Constant.ERROR;
	}
}
